﻿using System;

namespace MessagePack
{
	// Token: 0x02000003 RID: 3
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
	public class KeyAttribute : Attribute
	{
		// Token: 0x06000004 RID: 4 RVA: 0x00002362 File Offset: 0x00000762
		public KeyAttribute(int x)
		{
			this.IntKey = new int?(x);
		}

		// Token: 0x06000005 RID: 5 RVA: 0x00002376 File Offset: 0x00000776
		public KeyAttribute(string x)
		{
			this.StringKey = x;
		}

		// Token: 0x17000002 RID: 2
		// (get) Token: 0x06000006 RID: 6 RVA: 0x00002385 File Offset: 0x00000785
		// (set) Token: 0x06000007 RID: 7 RVA: 0x0000238D File Offset: 0x0000078D
		public int? IntKey { get; private set; }

		// Token: 0x17000003 RID: 3
		// (get) Token: 0x06000008 RID: 8 RVA: 0x00002396 File Offset: 0x00000796
		// (set) Token: 0x06000009 RID: 9 RVA: 0x0000239E File Offset: 0x0000079E
		public string StringKey { get; private set; }
	}
}
